    <%
    require '/var/www/html/aboutyou-ruby-sdk/AboutYou-SDK/lib/aboutyou-sdk.rb'

        ay = AY.new(100, '3ed93394c2b5ebd12c104b177b928ad0')

        criteria = ay.product_search_criteria.select_sales

        productResult = ay.fetch_product_search(criteria)
        saleFacet = productResult.sale_counts
    %>
        <%= 'Alle Produkte: ' + String(saleFacet.product_count_total) %>
        <%= 'im Ausverkauf: ' + String(saleFacet.product_count_in_sale) %>
        <%= 'Andere Produkte: ' + String(saleFacet.product_count_not_in_sale) %>